package com.example.net.http.response

import com.google.gson.annotations.SerializedName

/**
 * Author by lp,on 2020/12/24/024,11:15.
 */
data class BaseResponse<T>(
    @SerializedName("statusCode")
    var statusCode: Int? = null,
    @SerializedName("status")
    var status: Int? = null,
    @SerializedName("code")
    var code: String? = null,
    @SerializedName("message")
    var message: String? = null,
    @SerializedName("msg")
    var msg: String? = null,
    @SerializedName("data_len")
    var data_len: String? = null,
    @SerializedName("success")
    var success: Boolean? = null,
    @SerializedName("data")
    var data: T? = null

) {
    override fun toString(): String {
        return "BaseResponse(statusCode=$statusCode, status=$status, code=$code, message=$message, msg=$msg, data_len=$data_len, success=$success, data=$data)"
    }
}